package com.jieao.template.entity.pub;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 分页
 *
 * @author 姜兆伟
 * @className Pagination
 * @date 2019-07-30 13:30
 */
@ApiModel(value = "分页对象", description = "统一的分页信息管理")
@Data
public class Pagination implements Serializable
{
    private static final long serialVersionUID = -2578241871710153904L;

    @ApiModelProperty(value = "当前页码 默认值为1", required = true)
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页数量 默认值为20", required = false)
    private Integer pageSize = 20;

    @ApiModelProperty(value = "分页携带的其他信息", required = false)
    private Map<String, Object> params;

}
